// Register aliases of directories and custom module paths in Node
import 'module-alias/register';

import { Agent } from '$domain/model/agent';
import { logger } from '$common';
import { initServices } from '$domain/service';

initServices();

new Agent().setup().catch(e => {
  logger.error(`agent bootstrap error ${e}`);
  process.exit(-1);
});